package cn.zhf.shop.mapper;

import cn.zhf.shop.entity.CreditBank;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CreditBankMapper {
    /**
     * delete by primary key
     * @param creditBankId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer creditBankId);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(CreditBank record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(CreditBank record);

    /**
     * select by primary key
     * @param creditBankId primary key
     * @return object by primary key
     */
    CreditBank selectByPrimaryKey(Integer creditBankId);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(CreditBank record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CreditBank record);

    List<CreditBank> selectAll();
}